const mongoose = require('mongoose')
/**
 * 维护用户id自增表
 */
const roleSchema = new mongoose.Schema({
    roleName:String,
   remark:String,
   permissionList:{
       checkedKeys:[],
       halfCheckedkeys:[]
   },
   updatetime:{
    type:Date,
    default:Date.now()
   },
    createTime:{
     type:Date,
     default:Date.now()
 },
 
})

const Role = mongoose.model('role',roleSchema,'role')

module.exports={
    Role
}